package org.myorg;

import java.io.*;

public class S1 extends Para1{
	public static void main(String[] args) throws Exception {

		File res = new File(spath);

		if (res.exists()) {
			res.delete();
		}

		double[] low = new double[1000];
		double[] high = new double[1000];

		for (int i = 0; i < 1000; i++) {
			low[i] = -100;
			high[i] = 100;
		}

		for (int i = 0; i < ln; i++) {

			long st = System.currentTimeMillis();
			String r = FGA.ga(geneLength, low, high, spn, p_cross, p_mut, i_num, new FF1(),mag);
			long rt = System.currentTimeMillis() - st;
			System.out.println(i + "run time is " + rt);
			
			RWF.wf(r,spath);
		}
		
		System.out.println("Game over");

	}
	
}
